package com.xm.strategy;

import lombok.extern.slf4j.Slf4j;

import java.math.BigDecimal;

/**
 * 银行卡支付
 */
@Slf4j
public class BankCardStrategy implements PaymentStrategy{
    private final String cardNumber;
    private final String cvv;

    public BankCardStrategy(String cardNumber, String cvv) {
        this.cardNumber = cardNumber;
        this.cvv = cvv;
    }

    @Override
    public void pay(BigDecimal amount) {
        log.info("银行卡支付：支付 {} 元，卡号：{}，CVV：{}", amount, cardNumber, cvv);
    }
}
